// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.BarCarouselDao;
import com.liuxinlong.modules.entity.BarCarousel;
import com.liuxinlong.modules.mapper.BarCarouselMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年11月9日
 */
@Service
public class BarCarouselDaoImpl extends ServiceImpl<BarCarouselMapper, BarCarousel> implements BarCarouselDao {

    @Override
    public List<BarCarousel> pageBarCarouselList(Map<String, Object> queryParam) {
        return baseMapper.pageBarCarouselList(queryParam);
    }

    @Override
    public int getBarCarouselCount(Map<String, Object> queryParam) {
        return baseMapper.getBarCarouselCount(queryParam);
    }

    @Override
    public void updateCarouselStatus(String id, int targetStatus) {
        baseMapper.updateCarouselStatus(id, targetStatus);
    }

    @Override
    public BarCarousel getBarCarouselByIndex(int showIndex) {
        return baseMapper.getBarCarouselByIndex(showIndex);
    }

    @Override
    public List<BarCarousel> pageEffectiveBarCarouselList() {
        return baseMapper.pageEffectiveBarCarouselList();
    }

}
